﻿<%@ Page Title="" Language="C#" MasterPageFile="~/virtualWeb/user/loginMaster.Master"
    AutoEventWireup="true" CodeBehind="login.aspx.cs" Inherits="huaguwang.virtualWeb.user.login" %>

<%@ Import Namespace="huaguwang" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="/CSS/css_login.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript">
        $(function() {
            $("#btn_DL").click(function() {
                var name = $.trim($("#txtName").val());
                var pass = $.trim($("#txtPass").val());
                var one = $("#Checkbox1").attr("checked");
                name = name.replace("用户名/邮箱地址", "");
                var tip = $("#log_tips");
                tip.hide();
                tip.text("");
                if (name.length <= 0 || pass.length <= 0) {
                    tip.show();
                    tip.text("请输入用户名或者密码");
                    return false;
                }
                $.getJSON("/user/userfunction.aspx?stype=3&", { p1: name, p2: pass, p3: one },
                function(json) {
                    if (json.success == "False") {
                        tip.show();
                        tip.text(json.Msg);
                        return false;
                    } else {
                        tip.show();
                        tip.text("登录成功,页面跳转中,请等待...");
                        location.replace(json.Msg);
                        return true;
                    }
                });
            });
        });




        
    
    
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="BODY" runat="server">
    <div id="red_septal_red" >
    </div>
    <div id="content_BG">
        <div id="content_left">
            <span id="welcome_font">你好，欢迎来到华股网!</span>
            <p id="log_tips" style="display: none">
                提示</p>
            <div id="input_content">
                <table border="0" cellpadding="4" cellspacing="5">
                    <tr>
                        <td>
                            <label>
                                会员名</label>
                        </td>
                        <td>
                            <input id="txtName" class="input_txt" type="text" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label>
                                密 码</label>
                        </td>
                        <td>
                            <input id="txtPass" class="input_txt" type="password" />
                        </td>
                    </tr>
                </table>
                <div id="input_other">
                    <input id="Checkbox1" type="checkbox" /><font color="#aaaaaa"> 两周内免登录 </font><a href="">
                        <font color="#3366cc">忘记密码？</font></a></div>
                <div id="btn_postion">
                    <input id="btn_DL" type="button" value="" class="btn_login" />
                </div>
            </div>
            <div id="SL">
            </div>
            <div id="new_register_font1">
                还没有成为会员？</div>
            <div id="new_register_font2">
                <a href="">
                    <img src="/images/login_register/now_register.gif" /></a></div>
        </div>
        <div style="width: 59px; float: left;">
            <img src="/images/login_register/login_AD_left.gif" /></div>
        <div style="width: 466px; float: left;">
            <img src="/images/login_register/login_AD.gif" /></div>
    </div>
</asp:Content>
